package com.media.entrance.model;


import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;
import java.util.Map;

// 批处理返回结果对象，给二期1、2、3、4、5、6、7
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BatchResultModel {
    String status;

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    // 只websocket返回使用
    String eventType;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public BatchResultDataModel getData() {
        return data;
    }

    public void setData(BatchResultDataModel data) {
        this.data = data;
    }

    String errorMsg;

    public BatchResultModel(String status, String errorMsg, BatchResultDataModel data) {
        this.status = status;
        this.errorMsg = errorMsg;
        this.data = data;
    }

    // 只给websocket使用
    public BatchResultModel(String status, String errorMsg, BatchResultDataModel data, String eventType) {
        this.status = status;
        this.errorMsg = errorMsg;
        this.data = data;
        this.eventType = eventType;
    }
    public BatchResultModel(){

    }
    BatchResultDataModel data;

    @Override
    public String toString() {
        return "BatchResultModel{" +
                "status='" + status + '\'' +
                ", eventType='" + eventType + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", data=" + data +
                '}';
    }
}
